package com.zlf.quartz2.job;

import com.zlf.quartz2.service.UserService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;


public class HelloJob  {

    @Autowired
    private UserService userService;

    public void run() throws JobExecutionException {
        System.out.println("HelloJob execute");
        userService.demo();

    }
}
